package com.kgc.store.remote;

import com.kgc.basic.util.ResponseMsg;
import com.kgc.store.pojo.InStore;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.ResponseBody;

import java.util.Map;

public interface InStoreRemote {

    @RequestMapping("getInStoreList")
    @ResponseBody
     ResponseMsg getInStoreList(@RequestBody Map<String, Object> map);

    @RequestMapping("delInStore")
    @ResponseBody
    ResponseMsg delInStore(@RequestParam("id") Integer id);

    @RequestMapping("addInStore")
    @ResponseBody
    ResponseMsg addInStore(@RequestBody InStore inStore);


    @RequestMapping("getInStoreByCode")
    @ResponseBody
    ResponseMsg getInStoreByCode(@RequestParam("code") String code);

//    @RequestMapping("updateStatus")
//    @ResponseBody
//    ResponseMsg changeStatus(@RequestParam("code") String code,@RequestParam("status")int status);
}
